home *** CD-ROM | disk | FTP | other *** search
-
-
- Baseball Statkeeper 1
-
-
- Baseball Statkeeper 1.1
- (C)1987 By Michael J. Himowitz
- 8134 Scotts Level Road
- Baltimore, MD 21208
- 301-521-4885
- CIS 71655,1327
- DELPHI MHIMOWITZ
-
-
-
-
- Baseball Statkeeper is a program for the IBM PC and close
- compatibles that will make you the statistical genius of your
- Little Leauge. It will keep track of batting statistics for 180
- players on 12 teams. It will print out a variety of statistics
- for individual players and teams, sort the players on various
- stats and produce a variety of reports on the screen or printer.
- I designed it for little league play, but it can be used on
- virtually any level of competitive baseball or softball.
- The program is written in BASIC and runs under the BASIC
- interpreter. The current version needs some work before it can
- be compiled using the IBM Basic Compiler or Microsoft
- QuickBasic. This is so because it uses a machine language sort,
- as well as a routine that clears the screen quickly. As soon as
- I figure out how to get those working under the compiler, I'll
- get out a compiled version. I don't think it will pick up much
- speed from compilation, as the compiler doesn't do much for disk
- I/O or screen writing.
- Baseball Statkeeper stores its information on disk in
- files. A file can contain stats for a single team or a whole
- league. To begin, you must set up the teams in your league (or
- just one team, if that's all you're interested in) and establish
- a roster of players. You can add a player or team at any time.
- After each game, all you have to do is enter the stats from the
- game for each player. The program does all the calculating.
- Everything is menu driven. When the program starts, you'll
- see a Main Menu with the following choices:
-
- 1. LOAD A FILE
- 2. CREATE A NEW FILE
- 3. UPDATE A PLAYER
- 4. TEAM ROSTER
- 5. ADD A PLAYER
- 6. PLAYER REPORTS
- 7. TEAM REPORTS
- 8. SORT YOUR STATS
- 9. QUIT
-
- The menu choices are arranged in the order you're most
- likely to need them. However, we'll discuss them in the order
- you'll use them when you first set up your records. To select
- any menu item, just type its number. You do not have to hit
- <RETURN>.
-
-
-
-
- Baseball Statkeeper 2
-
-
- CREATE A NEW FILE
-
- This is menu Item 2. When you select it, you will be asked
- whether you want to create a new file. This is typical of
- Baseball Statkeeper. Before you do anything permanent, you will
- always be asked if you want to go ahead. Type "Y" to continue or
- "N" to return to the Main Menu.
- When you have confirmed your choice, you will be asked to
- type the letter representing the drive that will hold your data
- files. Type the letter (A-D). You will be shown a directory of
- files on that drive. You will then be prompted to enter a
- filename. Enter a filename of up to eight characters. DO NOT add
- an extension. The program will do that for you, as it actually
- creates four separate files, each with the filename you have
- chosen and extensions that the program looks for when accessing
- and writing data.
- When you have entered the filename, you will be returned to
- the Main Menu, where that filename will now be displayed.
-
- SET UP A TEAM ROSTER
-
- This is menu Item 4. It will allow you to add the names of
- teams to your roster. When you choose this item, you will be
- shown a list of current teams. You will then be prompted to
- enter the name of the team you want to add. Team names may have
- up to 18 characters.
- When you have entered a team name, you will be asked if it
- is correct. If you type "Y" you will be asked if you want to
- enter another team. If you type "N" you'll be prompted to enter
- the team name again. This, too, is typical of the program any
- time you are asked to enter data. If it is not correct, you will
- get the chance to enter it again.
- After you enter each team name, you will be asked to enter
- another team. When you are through entering the names of the
- teams in your league, type "N" when asked if you want to enter
- another team. You will then be returned to the Main Menu.
-
- ADD PLAYERS
-
- This is menu Item 5. When you choose to add a player, you
- will shown a list of teams, with the numbers assigned to each
- team by the program. You will then be prompted to enter the last
- name, first initial and team number for each player. MAKE SURE
- YOUR CAPS LOCK KEY IS TURNED ON when you enter this information,
- or the players names will not be properly sorted. Also, be sure
- to enter the NUMBER of the player's team and not the team name.
- When you have finished entering each player's name and
- team, you will be asked if you want to enter another player. If
- you type "Y" you'll be prompted for the information about the
- new player. If you type "N" you'll return to the Main Menu.
-
-
-
-
- Baseball Statkeeper 3
-
-
- UPDATE A PLAYER
-
- This is menu Item 3. It will allow you to update the latest
- game stats for each player (or enter stats for the initial game
- if you're just beginning your season). You will be prompted to
- enter the player's last name, then his first initial. Once
- again, make sure the CAPS LOCK key is depressed.
- The program will display the first match it comes to
- (including the team) and ask if this is the player you want. If
- it's not the player (in the unlikely event that you have two
- with the same last name and first initial), type "N" and the
- computer will look for further matches. If it is the player you
- want, type "Y."
- The player's current stats will be displayed, and you will
- be asked to enter the following information (a sample screen
- follows):
-
-
- ╔════════════════════════════════════════════════════════════════════════════╗
- ║ HERE ARE THE CURRENT STATS ║
- ╠════════════════════════════════════════════════════════════════════════════╣
- ║LAST NAME FI T AB HITS AVG HR OBP RUN RBI ERR BB SO 1B 2B 3B ║
- ║HIMOWITZ M 2 31 14 .452 5 .553 10 5 5 7 6 8 2 2 ║
- ╚════════════════════════════════════════════════════════════════════════════╝
-
- LET'S ENTER STATS FOR THE LATEST GAME
-
- AT BATS: 5
- HITS: 3
- HOME RUNS: 1
- RUNS SCORED: 1
- ERRORS: 1
- WALKS: 1
- STRIKEOUTS: 2
- SINGLES: 1
- DOUBLES: 1
- TRIPLES: 1
- RBI'S: 3
-
- IS THIS INFORMATION CORRECT? (Y/N)
-
-
- After typing each piece of information, hit the <RETURN>
- key. When you have confirmed the entire entry, the stats will be
- upated at the top of the screen and you will be asked if you
- want to update another player. Type "Y" to ask for another
- player or "N" to return to the Main Menu.
-
- LOAD A FILE
-
- This is menu Item 1. It will allow you to load a player file
- from disk if you are just starting the program. You must load a
- file (or create a new one) before you can update player stats.
- You will be prompted to enter the letter representing your data
- drive. Then you will be shown a directory of all the player
-
-
-
- Baseball Statkeeper 4
-
-
- files on that drive (they have the extension .PLY).
- When asked, type in the name of the player file you want to
- load. DO NOT TYPE THE EXTENSION. Just type the file name. The
- information in the file will be loaded into memory, and you're
- ready to update the player stats.
-
- SORT YOUR STATS
-
- Menu Item 8 is one of the nicest features of the program. It
- allows you to sort the players based on a variety of different
- statistics. The kids will love it, because everyone is likely to
- be near the top of the list in one category or another. Even the
- shrimpiest kid on the team is likely have a good on-base
- percentage because he gets a lot of walks. When you choose the
- sort feature, you'll see the following choices:
-
- 1. BY BATTING AVERAGE
- 2. BY HITS
- 3. BY HOME RUNS
- 4. BY RBI'S
- 5. BY RUNS SCORED
- 6. BY ON-BASE PCT.
-
- Just type the number of your selection and the program will
- sort the players on that statistic. It may take a minute or two,
- particularly if you're working from floppy disks and have a
- large number of players. When the sort is complete, you'll be
- prompted to hit the <RETURN> key to return to the Main Menu.
-
- PLAYER REPORTS
-
- This feature will allow you to display your player stats on
- the screen or send them to your printer. You will see the
- following choices:
-
- 1. INDIVIDUAL PLAYER
- 2. ALL PLAYERS
- 3. RETURN TO MAIN MENU
-
- Just type the number of your selection. In either case, you
- will be asked if you want the report sent to the screen or
- printer. Type either "S" for screen or "P" for printer.
- If you ask for an individual player, you'll be prompted for
- the player's last name and first initial. Once again, MAKE SURE
- THE CAPS LOCK KEY IS DEPRESSED. The program will display the
- player's stats or send it to the printer, depending on how you
- asked for it.
- If you ask for a printout, you will be prompted to enter
- today's date first. Once the data has been printed, you will be
- asked if you want to start a new page before going onto the next
- player. Type "Y" or "N". This will allow you to save paper if
- you ask for a series of indivdual players.
- When you ask for a report showing all players, you will be
- asked if you want the CURRENT INDEX or the PLAYER INDEX. This
- refers to how you want the players displayed. If you ask for the
-
-
-
- Baseball Statkeeper 5
-
-
- CURRENT INDEX, the players will be listed according to the last
- sort you asked for. If you specify the PLAYER INDEX, the players
- will be listed in alphabetical order.
-
- TEAM REPORTS
-
- Menu Item 7 will give you team reports in several different
- formats. Once again, you will have the choice of displaying the
- reports on the screen or printer, with one exception. The
- display of all teams with their players is a printer-only
- report. Here are the choices you'll see:
-
- 1. LIST ALL TEAMS
- 2. TEAM WITH PLAYERS
- 3. ALL TEAMS WITH PLAYERS
- 4. RETURN TO MENU
-
- 1. List All Teams--This will give you a report showing the
- composite statistics for all teams. It's a great summary for
- your whole league.
- 2. Team With Players--This will allow you to select an
- individual team. It will show you all the players on the team
- you select, with the team's composite stats at the bottom.
- 3. All Teams With Players--This will send reports for all
- your teams to the printer automatically, with a separate page
- for each team. The indivdual players and team totals will be
- shown on each page.
- If you ask for printed reports, you will usually be asked to
- enter a title that will appear at the top of the page along with
- the date. It's a good idea to make sure you have the correct
- date in the system before you run the program to eliminate any
- conflicts here. You will normally get the date prompt from DOS
- when you start your computer. If you're not sure whether you
- have it, just enter the command DATE at the DOS prompt (not
- while you're in BASIC) and then enter the date.
-
- TECHNICAL NOTES
-
- Baseball Statkeeper creates four disk files to store the
- information in each filename that you specify. Let's say you
- create a file called "LEAGUE." The four disk files created are
- as follows:
-
- LEAGUE.PLY -- A random access file with the players names,
- team numbers and statistics.
- LEAGUE.CNF -- A sequential file indicating the current number
- of players and teams.
- LEAGUE.TMS -- A sequential file containing composite
- statistics for each team.
- LEAGUE.PDX -- A sequential index file in which each entry is
- a player's name followed by his record number in the random
- file LEAGUE.PLY. The PDX file is sorted in alphabetical order.
- When you sort your stats, the program creates a second
- sequential file in memory with the same names and team numbers,
- but sorted in the order you specified.
-
-
-
- Baseball Statkeeper 6
-
-
- PROGRAM NOTES
-
- While this program is copyrighted, you are free to use it
- and distribute copies. But you can't charge anything for those
- copies. The program is published under the "Leagueware"
- principle. If you like it and use it, don't send me anything.
- Instead, make a contribution to your local little league. If you
- don't have a local little league, you can make a contribution to
- our local little league, Pikesville Baseball Inc., P.O. Box
- 5965, Baltimore, MD 21208.
- I could include some silly language about only distributing
- unmodified copies of the program. But I know there are lots of
- hackers out there who may be able to improve it. If you should
- modify it and distribute it, you must include a copy of the
- original program and documentation. You must also make it
- perfectly clear in the modified version that it is in fact, a
- modified version and not the original. This will save me a lot
- of grief.
- The author makes the usual disclaimers of irresponsibility
- as to warranties, performance, merchantability, and fitness for
- any particular purpose. If you find any bugs or problems, or
- make improvements, I would appreciate hearing from you or
- getting a copy of the enhanced version. Mostly, I hope you and
- your players enjoy the program.
-
- Mike Himowitz
- 1/20/86
-